import type { userInfoData } from '@/api/user/type'

// 部门信息数据类型（临时定义，后续会创建完整文件）
export interface departmentInfoData {
  _id?: string
  name: string
  description?: string
  parent_id?: string
  permissions?: string[]
  create_time?: number
  update_time?: number
}

// 团队信息数据类型
export interface teamInfoData {
  _id?: string
  name: string
  description?: string
  department_id?: string
  leader_id?: string
  member_count?: number
  permissions?: string[]
  create_time?: number
  update_time?: number
  department?: departmentInfoData
  leader?: userInfoData
}

// 团队列表数据类型
export interface teamListData {
  data: teamInfoData[]
  total: number
}

// 获取团队列表响应数据类型
export interface getTeamListResponseData {
  status: number
  data?: teamListData
  msg?: string
}

// 团队权限数据类型
export interface teamPermissionData {
  team_id: string
  permissions: string[]
  inherited_permissions?: string[]
} 
